#/bin/bash

http://192.168.2.250:81/videoMessage/index&pageNum=20&&pageSize=50
http://192.168.2.250:8081
https://192.168.2.250:8081

docker rm -f $(docker ps -a -q)
# 删除所有docker镜像
docker rmi -f $(docker images -q)
wget -O ./openjdk-21_linux-x64_bin.tar.gz https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
docker cp jdk-21.0.5 test:/
tar -xzvf ./openjdk-21_linux-x64_bin.tar.gz

docker run -it --name test alpine:latest /bin/exec

#配置环境变量
export JAVA_HOME=/jdk-21.0.5
ENV CLASSPATH :$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
ENV APP_NAME /startup/app.jar
ENV APP_CONFIG /startup/application.properties







docker run -d -p 8081:8081 \
			--name nexus3 -e NEXUS_CONTEXT=nexus \
			-e INSTALL4J_ADD_VM_PARAMS="-Xms1024m -Xmx1024m -XX:MaxDirectMemorySize=1024m" \
			-v nexus3:/nexus-data \
			sonatype/nexus3


  nexus3:       # 私服服务名称为 web
    image: sonatype/nexus3  # 使用 nginx 镜像
    container_name: nexus3
    networks: # 网络配置
      my-net: # 网络名称
        ipv4_address: 192.168.10.251
    environment:
      NEXUS_CONTEXT=nexus
    ports:
      # 端口映射，宿主机端口80映射到容器的端口80
      - "3306:3306"
    volumes:
      - ${MYSQL_DIR}:/var/lib/mysql  # 挂载卷，当前目录下的html文件夹映射到容器的相应位置
    restart: unless-stopped # 重启策略












